package com.ifengxue.plugin.entity;

public enum ReactValueType {

    PASSWORD     ("password","密码输入框"),
    MONEY        ("money","金额输入框"),
    TEXTAREA     ("textarea","文本域"),
    DATE         ("date","日期"),
    DATETIME     ("dateTime","日期时间"),
    DATEWEEK     ("dateWeek","周"),
    DATEMONTH    ("dateMonth","月"),
    DATEQUARTER  ("dateQuarter","季度输入"),
    DATEYEAR     ("dateYear","年份输入"),
    DATERANGE    ("dateRange","日期区间"),
    DATETIMERANGE("dateTimeRange","日期时间区间"),
    TIME         ("time","时间"),
    TIMERANGE    ("timeRange","时间区间"),
    TEXT         ("text","文本框"),
    SELECT       ("select","下拉框"),
    TREESELECT   ("treeSelect","树形下拉框"),
    CHECKBOX     ("checkbox","多选框"),
    RATE         ("rate","星级组件"),
    RADIO        ("radio","单选框"),
    RADIOBUTTON  ("radioButton","按钮单选框"),
    PROGRESS     ("progress","进度条"),
    PERCENT      ("percent","百分比组件"),
    DIGIT        ("digit","数字输入框"),
    SECOND       ("second","秒格式化"),
    AVATAR       ("avatar","头像"),
    CODE         ("code","代码框"),
    SWITCH       ("switch","开关"),
    FROMNOW      ("fromNow","相对于当前时间"),
    IMAGE        ("image","图片"),
    JSONCODE     ("jsonCode","代码框，但是带了 json 格式化"),
    COLOR        ("color","颜色选择器"),
    CASCADER     ("cascader","级联选择器");

    private String value;

    private String desc;

    public String value() {
        return this.value;
    }

    ReactValueType(String value, String desc) {
        this.value = value;
        this.desc = desc;
    }

}
